package io.github.talelin.latticy.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/28
 * @description:
 */
@AllArgsConstructor
@Getter
public enum DistanceUnitEnum {

    /**
     * 厘米
     */
    CM(1,"CM"),

    /**
     * 英寸
     */
    IN(2,"IN");

    @EnumValue
    private Integer distanceUnit;

    @JsonValue    //标记响应json值
    private String distanceUnitDesc;
}
